package com.xcw.test;

import com.xcw.FunctionIntterPg.MessageBuilder;

/**
 * @Author bhx
 * @Date 2022/8/9 1:35
 * @Description TODO
 */
public class DemoLogger {
    public static void showLog(int level, MessageBuilder message) {
        if (level == 1){
            System.out.println(message.builderMessage());
        }
    }

    public static void main(String[] args) {
        String m1 = "JAVA";
        String m2 = "Python";
        String m3 = "JS";
        String m4 = "script";
        showLog(1, new MessageBuilder() {
            @Override
            public String builderMessage() {
                return m1 + m2 + m3 + m4;
            }
        });
    }
}
